<?php $objDef = new objectDef('reportdef')?>
<?php $sectionPrev = current(array_keys($reportsList)); // get the first section name?>
<fieldset id="reportSection_' <?php echo $sectionPrev ?>'" class="reportSection"><legend class="reportSectionLegend"><?php echo $sectionPrev ?></legend>
<?php foreach ($reportsList as $section => $reportsParSection):?>
	<?php echo ($section != $sectionPrev) ?  '</fieldset><fieldset id="reportSection_' . $section . '" class="reportSection"><legend class="reportSectionLegend">' . $section . '</legend>' : '';?>
	<?php foreach ($reportsParSection as $monReport):?>
	<table>
		<thead><tr><th colspan="2" width="100%">
			<?php echo $monReport['title'];?>
		</th></tr></thead>
		<tbody>	
			<tr><th width="30%"><?php echo $objDef->renderLabel('description')?></th><td width="70%"><?php echo $monReport['description']?></td></tr>
			<?php if($monReport['commentaire']<>''):?>
			<tr><th><?php echo $objDef->renderLabel('commentaire')?></th><td><?php echo $monReport['commentaire']?></td></tr>
			<?php endif;?>
			<tr><th><?php echo $objDef->renderLabel('roles')?></th><td><?php  echo $objDef->renderAttributeValue($monReport,'roles')?></td></tr>
		</tbody>
	</table>
	<br />
	<?php endforeach;?>
	
	<?php $sectionPrev = $section;?>
<?php endforeach;?>
</fieldset>
